<?php

namespace app\api\model;

use think\Model;

class BannerItem extends BaseModel
{
    protected $hidden = ['id','img_id','banner_id','delete_time', 'update_time']; //设置自动隐藏的字段
    public function img(){
        return $this->belongsTo('image', 'img_id', 'id');
    }
}
